package com.app.piemoment;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

import com.app.piemoment.config.ApiConfig;
import com.app.piemoment.net.HttpResultJson;
import com.app.piemoment.net.NetService;

public class PieMomentActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		List<NameValuePair> params = new ArrayList<NameValuePair>();

		params.add(new BasicNameValuePair("k", ApiConfig.APP_KEY));
		params.add(new BasicNameValuePair("v", ApiConfig.APP_SECRET));

		HttpResultJson result = NetService.httpPostReturnJson(
				PieMomentActivity.this, ApiConfig.PIEMOMENT_URL, params);
		String resonString = result.getJson().toString();
		Log.e("json", resonString);
	}
}